execute if score game_run system matches 1 as @a[x=140,y=-64,z=305,dx=100,dy=124,dz=-99] at @s if score stream_type system matches 2 run effect give @s darkness 2 5 true
execute if score game_run system matches 1 if score stream_type system matches 2 if score only_init system matches 0 run fill 140 -64 305 240 60 206 air
execute if score game_run system matches 1 if score stream_type system matches 2 if score only_init system matches 0 as @a at @s run playsound entity.wither.break_block master @s ~ ~ ~ 0.2
execute if score game_run system matches 1 if score stream_type system matches 2 if score only_init system matches 0 run scoreboard players set only_init system 1
execute if score game_run system matches 1 as @a[x=140,y=-64,z=305,dx=100,dy=124,dz=-99,tag=playing,team=!spectator] at @s if score stream_type system matches 3 run spreadplayers 193 256 50 300 under 50 true @s
execute if score game_run system matches 1 if score stream_type system matches 4 if score only_init system matches ..0 run function vs:system/stream_mob
execute if score game_run system matches 1 if score stream_type system matches 4 if score only_init system matches ..0 run scoreboard players set only_init system 200
execute if score game_run system matches 1 if score stream_type system matches 4 if score only_init system matches 1.. run scoreboard players remove only_init system 1

execute if score game_run system matches 1 if score stream_type system matches 5 if score only_init system matches ..0 if function vs:system/game_ctrol/void_stream/devour/test/can_spawn_mob run function vs:system/stream_mob
execute if score game_run system matches 1 if score stream_type system matches 5 if score only_init system matches ..0 run scoreboard players set only_init system 60
execute if score game_run system matches 1 if score stream_type system matches 5 if score only_init system matches 1.. run scoreboard players remove only_init system 1
execute if score game_run system matches 1 as @a[x=140,y=-64,z=305,dx=100,dy=124,dz=-99] at @s if score stream_type system matches 5 run function vs:system/game_ctrol/void_stream/devour/devour_dead